how to manipualte strins in python